home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr11
/
pdox693.zip
/
TI146.ASC
< prev
next >
Wrap
Text File
|
1992-09-02
|
13KB
|
463 lines
PRODUCT : Paradox NUMBER : 146
VERSION : All
OS : DOS
DATE : September 2, 1992 PAGE : 1/7
TITLE : A Discussion of Novell Maps and Search Maps
A Brief Explanation of a Map:
Generally speaking a Map is a method of allowing users running on
a network to access directories on a file server through logical
drive letters.
Map Commands Can Be Executed at Several Levels:
* Once network drivers are loaded a drive letter is Mapped
to File_Server>\Sys:\Login so that you can log in and
access the server. Typically the drive letter is F:.
When you type F: you are moved to drive F: in the Login
directory (F:\Login).
* Mappings can be set globally through a global Login Script
which is executed automatically when a user logs on to a
specific server.
* Each user can have a personal Login Script which executes
Mappings which only effect them. These commands are also
executed automatically after the global Login Script is
executed.
* Mappings can be executed at the DOS command line or from a
DOS batch file.
The Map Command:
The syntax of the MAP command:
Map <Drive Letter>: = <File_Server>\<Volume>:\<Directory>
<Drive Letter> is the drive letter that you want to map to a
directory on the server.
<Server> is the Name of the server to which you are currently
attached.
<Volume> is a designated subsection of the server akin to the
Volume Label of a logical partition. The difference is that the
Volume cannot be accessed until you Map it to a drive letter.
PRODUCT : Paradox NUMBER : 146
VERSION : All
OS : DOS
DATE : September 2, 1992 PAGE : 2/7
TITLE : A Discussion of Novell Maps and Search Maps
Notes:
When you Map a drive letter to a Volume the drive letter becomes
root of the Volume. For instance if you Map T: to
<File_Server>\Apps with the command: "Map T: =
<File_Server>\Apps:" then T: enables you to access the root of
the Apps Volume.
If you Map a drive letter to a Volume and a directory then when
you change to that Mapped drive letter you automatically change
to that directory as well. This does not mean that the drive
letter is assigned to that directory but that the directory is
the default directory on that logical partition. For instance,
let's examine the following Map command:
Map S: = ServerName\Apps:\PdoxData
The first time you change to S: after logging in you will see the
prompt S:\PdoxData>. After you have changed to this drive the
first time you can change the active directory just as you can
change to any directory on any DOS drive. If you change to the
root of S: (S:\) then the next time you access the S: drive S:\
will be the current directory. If you log off and log back in
then S: will again take you to S:\PdoxData.
The Map Root Command:
The syntax of the MAP ROOT command:
Map Root <Drive Letter>: = <File_Server>\<Volume>:\<Directory>
The Map Root command is useful if you wanted to actually Map a
drive letter to a subdirectory below the root of a Volume. For
instance, if you wanted to Map S: to ServerName\Apps:\PdoxData so
that PdoxData is the root of S: (similar to the DOS Subst
command) you would use the following command:
Map Root S: = <File_Server>\Apps:\PdoxData
Now if you change to S: you will see the prompt S:\>. PdoxData
is the root of S:. If you do a directory of S:\ you will see the
files associated with the PdoxData directory. With this Mapping
PRODUCT : Paradox NUMBER : 146
VERSION : All
OS : DOS
DATE : September 2, 1992 PAGE : 3/7
TITLE : A Discussion of Novell Maps and Search Maps
you can no longer access the the root of the Apps Volume through
drive letter S:.
The Search Map Command
The syntax of the SEARCH MAP command:
Map S<Number>: = <Server>\<Volume>:\<Directory>
<Number> is the position of this directory in the search path.
Once a search map statement is executed the directory is mapped
to the first unused drive letter in reverse alphabetical order.
For instance, if drives Z: and Y: are already in use by previous
Map statements the Search Map will assign the drive letter X: to
the directory in question. This is true even if that directory
is already Mapped to another drive letter through a previous Map
statement. The newly assigned drive letter will not only enable
location of executable files in that specific directory but also
behave as a regular Mapped drive. When used for searching a path
to locate executables in a specific directory it will be referred
to in the form of "<Drive Letter>:.".
(For example: X:.)
The period which follows the colon stands for the current
directory on that drive. When an executable program is called at
the DOS level and the Search Mapped drive letter is encountered
in the Path Novell uses the period as a lookup value and replaces
it with the full Search path. If you want to be able to use this
search map to locate executable programs be sure not to change
the current working directory for that drive letter at the DOS
level. If you want to be able to move up and down directories on
the Volume in question it is best to Map the drive with one
letter and Search Map the directory to be searched separately.
Only use the drive letter from the Map when moving around at the
DOS level.
For example, let's say that we want to Search Map a directory
called Pdox35 which is stored in the Apps volume. Here is the
Search Map statement which you could place in the user's login
script:
PRODUCT : Paradox NUMBER : 146
VERSION : All
OS : DOS
DATE : September 2, 1992 PAGE : 4/7
TITLE : A Discussion of Novell Maps and Search Maps
Map S1: = File_Server\Apps:\Pdox35
Once executed this directory is Mapped to drive letter (let's say
X:). The DOS path will now include X:. (including the period).
Once the X:. is encountered Novell takes control and substitutes
(in memory) the entire Search Path: X:\Pdox35
Since the placement of a network directory in the search path can
be done in many different ways we will discuss this process one
scenario at a time. For the sake of example we will assume that
the user has an existing DOS Path of: C:\;c:\dos;c:\utils.
Scenario 1
The network directories are Search Mapped in the user's login
script:
If a Search Map is defined in the user's login script then the
network directory specified will be written into the user's DOS
Path in the position specified by the search map number. For
instance, if the map statement is Map S1:
<File_Server>\Apps:\Pdox35 then the DOS path of the user will be
changed to X:.;C:\Dos;C:\Utils where X:. is the search drive
letter assigned to the Pdox35 directory. If the Search number
was changed to S2: the position of X:. would be shifted to the
second position in the DOS Path (i.e. C:\;X:.;C:\Utils). Note
that the Search Map command overwrites the directory which
previously resided in the search position specified. To avoid
this the keyword Insert must be used so that the rest of the path
can remain intact. See Scenario 3 for further discussion of the
Insert keyword.
Scenario 2
The network directories are Mapped in a Login Script but placed
into the DOS Path Statement explicitly by the user with a Path
Append (%Path%) statement:
Rather than Search Mapping network directories in a Login Script
a user can place a Mapped drive letter into the DOS Path by
appending the drive letters at the end of the regular DOS Path
after Login. Once again the network drive letters must end with
PRODUCT : Paradox NUMBER : 146
VERSION : All
OS : DOS
DATE : September 2, 1992 PAGE : 5/7
TITLE : A Discussion of Novell Maps and Search Maps
a period to specify a Search Map as opposed to searching the root
of a regular DOS logical partition. The following example is a
Login batch file which implements such a strategy. Assume that
X: and Z: are already Mapped in the user's Login Script.
IPX
NET5
F:
Login File_Server/User_Name
Path=%Path%;X:.;Z:.
Even though X: and Z: were not specifically Search Mapped, (they
were only Mapped) the period acts as a flag to inform the Novell
Netware that there is additional directory information specified
in the Map statement associated with this drive letter. The
advantage of this method is that you can control what drive
letters are used in the DOS Path statement.
Scenario 3
Search Maps are implemented manually or through a batch file
after the Login Script and DOS path are set:
Once a user has logged in and the Login Script has been
implemented the Novell Netware stores information about the
position of each directory and Search Map. If you execute the
Map command without any drive letter or server/volume info (i.e.
Map) a display of your current Maps and Search Maps will be
printed to the screen. The last section will look something like
this:
SEARCH 1: = C:\
SEARCH 2: = C:\DOS
SEARCH 3: = C:\UTILS
SEARCH 4: = X:. [<FILE_SERVER>\APPS: \PDOX35]
The equivalent DOS Path would look like this:
Path=C:\;C:\Dos;C:\Utils;X:.
These positions are fixed. If you now execute a Search Map
assigned to S1: you will overwrite the current setting for SEARCH
PRODUCT : Paradox NUMBER : 146
VERSION : All
OS : DOS
DATE : September 2, 1992 PAGE : 6/7
TITLE : A Discussion of Novell Maps and Search Maps
1:. C:\ would be removed from your DOS Path and the new setting
would take its place. In order to enable a user to insert a new
Search Map in a specific position without overwriting the current
entry Novell supplies the keyword INSERT which creates a new
entry for the position in question and pushes all subsequent
entries down one position in the Search Path. For example, let's
say we want to place a new Search Map to a directory called
PdoxData on the Data volume into position 1 in the Search Path.
This example assumes that W: is next available drive letter:
Map Insert S1: = File_Server\Data:\PdoxData
The new Search Path would now appear as follows:
SEARCH 1: = W:. [<FILE_SERVER>\DATA: \PDOXDATA]
SEARCH 2: = C:\
SEARCH 3: = C:\DOS
SEARCH 4: = C:\UTILS
SEARCH 5: = X:. [<FILE_SERVER>\APPS: \PDOX35]
The equivalent DOS Path would look like this:
Path=W:.;C:\;C:\Dos;C:\Utils;X:.
If you wanted to delete a reference to a local directory or
Search Map in a Search Path you could use the DELETE keyword.
For instance, if you now wanted to remove PdoxData from the Path
you would use the following command:
Map Delete S1:
Note:
The keywords Insert and Delete may be abbreviated with Ins and
Del.
For more information on Novell Maps contact Novell's Technical
Support Department.
DISCLAIMER: You have the right to use this technical information
subject to the terms of the No-Nonsense License Statement that
PRODUCT : Paradox NUMBER : 146
VERSION : All
OS : DOS
DATE : September 2, 1992 PAGE : 7/7
TITLE : A Discussion of Novell Maps and Search Maps
you received with the Borland product to which this information
pertains.